﻿using Microsoft.CodeAnalysis;

namespace UIOC.CodeAnalysis.Extensions;

internal static class AssemblySymbolExtensions {

    public static bool IsIgnore(this IAssemblySymbol assemblySymbol) {
        if (assemblySymbol.Name == "netstandard"
            || assemblySymbol.Name == "mscorlib"
            || assemblySymbol.Name == "System"
            || assemblySymbol.Name.StartsWith("System.")
            || assemblySymbol.Name.StartsWith("Unity.")
            || assemblySymbol.Name.StartsWith("UnityEngine.")
            || assemblySymbol.Name.StartsWith("UnityEditor.")
            || assemblySymbol.Name.StartsWith("NUnit.")
        ) {
            return true;
        }
        return false;
    }
}
